// 是否显示密码
const form = $('.form')
form.click(function (e) {
    if (e.target.tagName === 'I') {
        const self = e.target
        if (self.previousElementSibling.type === 'password') {
            self.classList.add('active')
            self.previousElementSibling.type = 'text'
        } else {
            self.classList.remove('active')
            self.previousElementSibling.type = 'password'
        }
    }
})